if (!Stricmp(ReadInfo("file_name"), "Grep.Tmp")) {
int line;
int buffer_id;
string directory=GetLine(1);
line=atoi(GetLine());
if (line) {
int counter;
string file;
for (counter=ReadInfo("line")-1; counter>0; counter--) {
file=GetLine(counter);
if (file[0]!=' ' && (file[0]<'0' || file[0]>'9'))
break;
}
if (counter>0) {
for (counter=strlen(file)-1; counter>0; counter--) {
if (file[counter]==':')
break;
}
file=substr(file, 0, counter);
buffer_id=GetBufferID(file);
if (buffer_id && ReadInfo("changes", buffer_id)) {
if (!Request(joinstr("'", file, "' exist as a changed buffer!\n\nDo you want to activate the internal buffer?"), "Grep information", "Activate existing|Load origin"))